<template>
<li :class="{'is-disable':disabled}"
  class="dropdown-option">
  <slot></slot>
</li>
</template>

<script lang="ts">
import { defineComponent } from 'vue'
export default defineComponent({
  name: 'DropItem',
  props: {
    disabled: {
      type: Boolean,
      default: false
    }
  }
})
</script>

<style scoped lang="less">
.dropdown-option.is-disable * {
  color: #6c757d;
  pointer-events: none;
  background-color: transparent;
}
</style>
